<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:import href="commun.xsl"/>
	<xsl:param name="TYPE">
		<xsl:value-of select="/root/request/type"/>
	</xsl:param>
	<xsl:template match="/">
		<html>
			<xsl:call-template name="Header">
				<xsl:with-param name="HeadTitre">Application test</xsl:with-param>
			</xsl:call-template>
			<body>
				<xsl:choose>
					<xsl:when test="$TYPE='tabReleves'">
						<xsl:call-template name="tabReleves"/>
					</xsl:when>
					<xsl:otherwise/>
				</xsl:choose>
			</body>
		</html>
	</xsl:template>
	<xsl:template name="tabReleves">
		<center>
			<form method="POST" action="index.php?page=STAT_RELEVES&amp;cinematic=display" target="stat_contenu">
				<input name="numeroCompte" type="hidden" value="{$NUMEROCOMPTE}"/>
				<table class="formulaire">
					<tr>
						<td>
							<xsl:value-of select="$LBL.PREMIERRELEVE"/>
						</td>
						<td>
							<xsl:apply-templates select="/root/data/ListeReleves">
								<xsl:with-param name="name" select="'premierReleve'"/>
							</xsl:apply-templates>
						</td>
					</tr>
					<tr>
						<td>
							<xsl:value-of select="$LBL.DERNIERRELEVE"/>
						</td>
						<td>
							<xsl:apply-templates select="/root/data/ListeReleves">
								<xsl:with-param name="name" select="'dernierReleve'"/>
							</xsl:apply-templates>
						</td>
					</tr>
				</table>
				<table>
					<tr>
						<td colspan="2" rowspan="1">
							<input name="valider" value="Valider" type="submit"/>
						</td>
					</tr>
				</table>
			</form>
			<!--/VTP_statistiques-->
		</center>
	</xsl:template>
	<xsl:template match="ListeReleves">
		<xsl:param name="name"/>
		<select name="{$name}" id="{$name}">
			<option/>
			<xsl:apply-templates select="Dynamic"/>
		</select>
	</xsl:template>
	<xsl:template match="Dynamic">
		<option value="{noreleve}">
			<xsl:value-of select="noreleve"/>
		</option>
	</xsl:template>
</xsl:stylesheet>
